package com.onstar.cn.framework.network.enumtype;

/**
 * Http request method
 * 
 * @author 7828wc
 * 
 */
public enum HttpMethod {
	/**
	 * Vehicle command invocations and to create various new resources.
	 */
	POST("POST"),
	/**
	 * Get the resource itself
	 */
	GET("GET"),
	/**
	 * Delete a resource.
	 */
	DELETE("DELETE"),
	/**
	 * Update the (state) of a resource or insert a resource
	 */
	PUT("PUT");
	private final String value;

	HttpMethod(String v) {
		value = v;
	}

	HttpMethod() {
		value = this.name();
	}

	public String value() {
		return value;
	}
}
